package com.kafang.learnaid.demo1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kafang.learnaid.demo1.entity.EmployeeEntity;
import com.kafang.learnaid.demo1.mapper.EmployeeMapper;
import com.kafang.learnaid.demo1.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, EmployeeEntity> implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    public List<EmployeeEntity> getAll() {
        List<EmployeeEntity> employeeList = employeeMapper.selectList(null);
        return employeeList;
    }
}
